<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "package_like".
 *
 * @property string $id
 * @property integer $type
 * @property string $package_id
 * @property integer $user_id
 * @property string $created_at
 */
class PackageLike extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'package_like';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['type', 'package_id', 'user_id'], 'integer'],
            [['package_id', 'user_id'], 'required'],
            [['created_at'], 'safe'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'type' => 'Type',
            'package_id' => 'Package ID',
            'user_id' => 'User ID',
            'created_at' => 'Created At',
        ];
    }
}
